package com.zhou.message.dto;

import com.zhou.framework.model.PageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author lang.zhou
 * @since 2023/3/1
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("附件修改模型")
public class AttachmentUpdateDto extends PageParam implements Serializable {

    @ApiModelProperty("附件id")
    @NotNull
    private Integer id;

    @ApiModelProperty("是否公开")
    @NotNull
    private Integer isPub;

    @ApiModelProperty("附件说明")
    private String description;
    @ApiModelProperty("来源")
    private String source;
    @ApiModelProperty("来源")
    private Integer sourceId;


    @ApiModelProperty("文件id")
    private List<String> fileIds;
}
